Optimal. Leaf size=117 \[ \frac {\left (8 a^2-4 a b+3 b^2\right ) x}{8 b^3}-\frac {a^{5/2} \tan ^{-1}\left (\frac {\sqrt {a+b} \tan (c+d x)}{\sqrt {a}}\right )}{b^3 \sqrt {a+b} d}+\frac {(4 a-3 b) \cos (c+d x) \sin (c+d x)}{8 b^2 d}-\frac {\cos (c+d x) \sin ^3(c+d x)}{4 b d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 117, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {3266, 481, 592,
536, 209, 211} \begin {gather*} -\frac {a^{5/2} \text {ArcTan}\left (\frac {\sqrt {a+b} \tan (c+d x)}{\sqrt {a}}\right )}{b^3 d \sqrt {a+b}}+\frac {x \left (8 a^2-4 a b+3 b^2\right )}{8 b^3}+\frac {(4 a-3 b) \sin (c+d x) \cos (c+d x)}{8 b^2 d}-\frac {\sin ^3(c+d x) \cos (c+d x)}{4 b d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 211
Rule 481
Rule 536
Rule 592
Rule 3266
Rubi steps
\begin {align*} \int \frac {\sin ^6(c+d x)}{a+b \sin ^2(c+d x)} \, dx &=\frac {\text {Subst}\left (\int \frac {x^6}{\left (1+x^2\right )^3 \left (a+(a+b) x^2\right )} \, dx,x,\tan (c+d x)\right )}{d}\\ &=-\frac {\cos (c+d x) \sin ^3(c+d x)}{4 b d}+\frac {\text {Subst}\left (\int \frac {x^2 \left (3 a+(-a+3 b) x^2\right )}{\left (1+x^2\right )^2 \left (a+(a+b) x^2\right )} \, dx,x,\tan (c+d x)\right )}{4 b d}\\ &=\frac {(4 a-3 b) \cos (c+d x) \sin (c+d x)}{8 b^2 d}-\frac {\cos (c+d x) \sin ^3(c+d x)}{4 b d}-\frac {\text {Subst}\left (\int \frac {a (4 a-3 b)+\left (-4 a^2+a b-3 b^2\right ) x^2}{\left (1+x^2\right ) \left (a+(a+b) x^2\right )} \, dx,x,\tan (c+d x)\right )}{8 b^2 d}\\ &=\frac {(4 a-3 b) \cos (c+d x) \sin (c+d x)}{8 b^2 d}-\frac {\cos (c+d x) \sin ^3(c+d x)}{4 b d}-\frac {a^3 \text {Subst}\left (\int \frac {1}{a+(a+b) x^2} \, dx,x,\tan (c+d x)\right )}{b^3 d}+\frac {\left (8 a^2-4 a b+3 b^2\right ) \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\tan (c+d x)\right )}{8 b^3 d}\\ &=\frac {\left (8 a^2-4 a b+3 b^2\right ) x}{8 b^3}-\frac {a^{5/2} \tan ^{-1}\left (\frac {\sqrt {a+b} \tan (c+d x)}{\sqrt {a}}\right )}{b^3 \sqrt {a+b} d}+\frac {(4 a-3 b) \cos (c+d x) \sin (c+d x)}{8 b^2 d}-\frac {\cos (c+d x) \sin ^3(c+d x)}{4 b d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.32, size = 95, normalized size = 0.81 \begin {gather*} \frac {4 \left (8 a^2-4 a b+3 b^2\right ) (c+d x)-\frac {32 a^{5/2} \tan ^{-1}\left (\frac {\sqrt {a+b} \tan (c+d x)}{\sqrt {a}}\right )}{\sqrt {a+b}}+8 (a-b) b \sin (2 (c+d x))+b^2 \sin (4 (c+d x))}{32 b^3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.30, size = 118, normalized size = 1.01
method | result | size |
derivativedivides | \(\frac {\frac {\frac {\left (\frac {1}{2} a b -\frac {5}{8} b^{2}\right ) \left (\tan ^{3}\left (d x +c \right )\right )+\left (\frac {1}{2} a b -\frac {3}{8} b^{2}\right ) \tan \left (d x +c \right )}{\left (\tan ^{2}\left (d x +c \right )+1\right )^{2}}+\frac {\left (8 a^{2}-4 a b +3 b^{2}\right ) \arctan \left (\tan \left (d x +c \right )\right )}{8}}{b^{3}}-\frac {a^{3} \arctan \left (\frac {\left (a +b \right ) \tan \left (d x +c \right )}{\sqrt {a \left (a +b \right )}}\right )}{b^{3} \sqrt {a \left (a +b \right )}}}{d}\) | \(118\) |
default | \(\frac {\frac {\frac {\left (\frac {1}{2} a b -\frac {5}{8} b^{2}\right ) \left (\tan ^{3}\left (d x +c \right )\right )+\left (\frac {1}{2} a b -\frac {3}{8} b^{2}\right ) \tan \left (d x +c \right )}{\left (\tan ^{2}\left (d x +c \right )+1\right )^{2}}+\frac {\left (8 a^{2}-4 a b +3 b^{2}\right ) \arctan \left (\tan \left (d x +c \right )\right )}{8}}{b^{3}}-\frac {a^{3} \arctan \left (\frac {\left (a +b \right ) \tan \left (d x +c \right )}{\sqrt {a \left (a +b \right )}}\right )}{b^{3} \sqrt {a \left (a +b \right )}}}{d}\) | \(118\) |
risch | \(\frac {x \,a^{2}}{b^{3}}-\frac {a x}{2 b^{2}}+\frac {3 x}{8 b}-\frac {i {\mathrm e}^{2 i \left (d x +c \right )} a}{8 b^{2} d}+\frac {i {\mathrm e}^{2 i \left (d x +c \right )}}{8 b d}+\frac {i {\mathrm e}^{-2 i \left (d x +c \right )} a}{8 b^{2} d}-\frac {i {\mathrm e}^{-2 i \left (d x +c \right )}}{8 b d}-\frac {\sqrt {-a \left (a +b \right )}\, a^{2} \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}+\frac {2 i \sqrt {-a \left (a +b \right )}-2 a -b}{b}\right )}{2 \left (a +b \right ) d \,b^{3}}+\frac {\sqrt {-a \left (a +b \right )}\, a^{2} \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-\frac {2 i \sqrt {-a \left (a +b \right )}+2 a +b}{b}\right )}{2 \left (a +b \right ) d \,b^{3}}+\frac {\sin \left (4 d x +4 c \right )}{32 b d}\) | \(227\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.54, size = 128, normalized size = 1.09 \begin {gather*} -\frac {\frac {8 \, a^{3} \arctan \left (\frac {{\left (a + b\right )} \tan \left (d x + c\right )}{\sqrt {{\left (a + b\right )} a}}\right )}{\sqrt {{\left (a + b\right )} a} b^{3}} - \frac {{\left (4 \, a - 5 \, b\right )} \tan \left (d x + c\right )^{3} + {\left (4 \, a - 3 \, b\right )} \tan \left (d x + c\right )}{b^{2} \tan \left (d x + c\right )^{4} + 2 \, b^{2} \tan \left (d x + c\right )^{2} + b^{2}} - \frac {{\left (8 \, a^{2} - 4 \, a b + 3 \, b^{2}\right )} {\left (d x + c\right )}}{b^{3}}}{8 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.47, size = 372, normalized size = 3.18 \begin {gather*} \left [\frac {2 \, a^{2} \sqrt {-\frac {a}{a + b}} \log \left (\frac {{\left (8 \, a^{2} + 8 \, a b + b^{2}\right )} \cos \left (d x + c\right )^{4} - 2 \, {\left (4 \, a^{2} + 5 \, a b + b^{2}\right )} \cos \left (d x + c\right )^{2} + 4 \, {\left ({\left (2 \, a^{2} + 3 \, a b + b^{2}\right )} \cos \left (d x + c\right )^{3} - {\left (a^{2} + 2 \, a b + b^{2}\right )} \cos \left (d x + c\right )\right )} \sqrt {-\frac {a}{a + b}} \sin \left (d x + c\right ) + a^{2} + 2 \, a b + b^{2}}{b^{2} \cos \left (d x + c\right )^{4} - 2 \, {\left (a b + b^{2}\right )} \cos \left (d x + c\right )^{2} + a^{2} + 2 \, a b + b^{2}}\right ) + {\left (8 \, a^{2} - 4 \, a b + 3 \, b^{2}\right )} d x + {\left (2 \, b^{2} \cos \left (d x + c\right )^{3} + {\left (4 \, a b - 5 \, b^{2}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{8 \, b^{3} d}, \frac {4 \, a^{2} \sqrt {\frac {a}{a + b}} \arctan \left (\frac {{\left ({\left (2 \, a + b\right )} \cos \left (d x + c\right )^{2} - a - b\right )} \sqrt {\frac {a}{a + b}}}{2 \, a \cos \left (d x + c\right ) \sin \left (d x + c\right )}\right ) + {\left (8 \, a^{2} - 4 \, a b + 3 \, b^{2}\right )} d x + {\left (2 \, b^{2} \cos \left (d x + c\right )^{3} + {\left (4 \, a b - 5 \, b^{2}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{8 \, b^{3} d}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.48, size = 157, normalized size = 1.34 \begin {gather*} -\frac {\frac {8 \, {\left (\pi \left \lfloor \frac {d x + c}{\pi } + \frac {1}{2} \right \rfloor \mathrm {sgn}\left (2 \, a + 2 \, b\right ) + \arctan \left (\frac {a \tan \left (d x + c\right ) + b \tan \left (d x + c\right )}{\sqrt {a^{2} + a b}}\right )\right )} a^{3}}{\sqrt {a^{2} + a b} b^{3}} - \frac {{\left (8 \, a^{2} - 4 \, a b + 3 \, b^{2}\right )} {\left (d x + c\right )}}{b^{3}} - \frac {4 \, a \tan \left (d x + c\right )^{3} - 5 \, b \tan \left (d x + c\right )^{3} + 4 \, a \tan \left (d x + c\right ) - 3 \, b \tan \left (d x + c\right )}{{\left (\tan \left (d x + c\right )^{2} + 1\right )}^{2} b^{2}}}{8 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 14.82, size = 1892, normalized size = 16.17 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________